package br.ufu.lsi.social.storage.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import br.ufu.lsi.social.storage.model.User;
import br.ufu.lsi.social.storage.repository.UserRepository;

@Service
public class SocialService {
    
    @Autowired
    private UserRepository userRepository;
    
    public Page<User> findAllUsers( Pageable pageable ) {
        return userRepository.findAll( pageable );
        
        //return userRepository.findByNameLike( query, new PageRequest( 0, max ) );
    }

}
